package zero.tech.games.gate.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import zero.tech.games.entity.games.UserRole;

public interface UserRoleMapper {

	@Select("select * from user_role where uid=#{uid}")
	UserRole getUserRole(@Param("uid")int uid);

	@Insert("insert into user_role(uid,role_id) values(#{uid},#{role_id})")
	void insert(UserRole userRole);

}
